﻿using FDStudio.Core.Config.SE;
using System;
using System.Collections.Generic;
using System.Text;

namespace FDStudio.Core.Search
{
    /*
     CreatedOn: 2018-03-13
     CreatedBy: Jackie Lee(天宇遊龍)
     */
    /// <summary>
    /// 搜索工厂
    /// </summary>
    public interface ISearchEngineFactory
    {
        /// <summary>
        /// 创建搜索引擎
        /// </summary>
        /// <param name="name">名称</param>
        /// <returns></returns>
        ISearchEngine Create(string name);

        /// <summary>
        /// 创建搜索引擎
        /// </summary>
        /// <param name="searchEngineConfig">配置</param>
        /// <returns></returns>
        ISearchEngine Create(ISearchEngineConfig searchEngineConfig);
    }
}
